<!DOCTYPE html>
<head>
    <meta name="viewport" content="width=device-width,initial-scale=1"/>
    <meta charset="utf-8"/>
    <title>米塔企业微云</title>
    <link href="../plugins/bootstrap/bootstrap.min.css" rel="stylesheet">
    <link href="../customize/css/iconfont.css" rel="stylesheet">
    <link href="../customize/css/content.css" rel="stylesheet">
    <style>
        .paih-table tr {
            background: #001A2D;
            border-bottom: 8px solid transparent;
            background-clip: padding-box;
        }

        .paih-table td {
            padding-top: 5px;
            padding-bottom: 8px;
            vertical-align: middle;
        }

        .paih-table tr td:nth-child(1) {
            padding-left: 0;
            padding-right: 0px;
        }

        .paih-table tr td:nth-child(2) {
            padding-left: 1px;
            padding-right: 10px;
        }

        .paih-table .iconfont {
            color: #99ACC9;
        }

        .paih-table .num1 .iconfont {
            color: #00E3D2;
        }

        .paih-table .num2 .iconfont {
            color: #1F9FFF;
        }

        .paih-table .num3 .iconfont {
            color: #FAD488;
        }

        .paih-table .progress {
            background: #053357;
            border-radius: 0px;
        }

        .paih-table .progress-bar {
            background: #99ACC9;
            border-radius: 0px;
        }

        .paih-table .num1 .progress-bar {
            background: #00E3D2;
        }

        .paih-table .num2 .progress-bar {
            background: #1F9FFF;
        }

        .paih-table .num3 .progress-bar {
            background: #FAD488;
        }
    </style>
</head>
<body>
<div class="main-content">
    <div class="d-flex justify-content-between mb-3 mt-1">
        <div class="section-title">
            <a class="font-p16 mr-3" href="##" onclick="javascript:window.history.back()" title="返回报告管理"><i
                    class="iconfont icon-xiahua"></i></a>
            生产报告
            <a class="explain-btn ml-3" href="##" onclick="showJDLModal()">稼动率年数据</a>
        </div>
        <div class="d-flex align-items-center">
            <div class="input-group">
                <input class="form-control" type="text" id="searchTimeBegin" autocomplete="off" placeholder="选择时间范围"
                       style="width:224px;">
                <div class="input-group-append">
                    <button class="btn btn-primary" type="button" onclick="loadData()"><i
                            class="iconfont icon-dituyechaxun"></i></button>
                </div>
            </div>
        </div>
    </div>
    <div class="border-blue d-flex align-items-center mb-3" style="border-left: none;">
        <div class="font-p24 result">
            <strong>结论</strong>
        </div>
        <div class="flex-1 font-p16 px-3 result-text" id="conclusion">

        </div>
    </div>
    <div class="d-flex mb-3">
        <div class="border-section position-relative" style="width: 446px">
            <div class="section-title mb-3">设备使用率分布
                <span class="title-icon"></span>
            </div>
            <div class="text-center position-absolute" style=" width: 172px; top: 170px; left: 90px;">
                <div class="text-bolder font-p24 text-powerOn" id="ljby"></div>
                <div class="font-p12 text-emphasize mb-1">台</div>
                <div class="font-p12">设备总数</div>
            </div>
            <div class="chart" id="chart_pie" style="height: 307px"></div>
        </div>
        <div class="flex-1 border-section mx-3">
            <div class="section-title mb-3">设备每日平均生产时长走势
                <span class="title-icon"></span>
            </div>
            <div class="chart" id="chart_line" style="height: 291px"></div>
        </div>
        <div class="flex-1 border-section" style="width: 446px">
            <div class="section-title mb-3">设备类型稼动率
                <span class="title-icon"></span>
            </div>
            <div class="chart" id="chart_bar" style="height: 291px"></div>
        </div>
    </div>
    <div class="d-flex">
        <div class="border-section" style="width: 446px">
            <div class="section-title mb-3">使用率排行
                <span class="title-icon"></span>
            </div>
            <div style="height: 367px; overflow-y: auto;">
                <table class="table text-nowrap paih-table mb-0" id="ranking">
                    <!--tr上的class取num拼接序号 -->
                    <!-- <tr class="num1">
                         <td><i class="iconfont icon-biaoqian"></i></td>
                         <td class="text-bolder number text-center">1</td>
                         <td class="w-100">
                             <div class="d-flex justify-content-between">
                                 <div>S12</div>
                                 <div class="text-bolder font-p14">91.67%</div>
                             </div>
                             <div class="progress" style="height: 6px;">
                                 <div class="progress-bar" style="width: 91.67%"></div>
                             </div>
                         </td>
                     </tr>
                     <tr class="num2">
                         <td><i class="iconfont icon-biaoqian"></i></td>
                         <td class="text-bolder number text-center">2</td>
                         <td class="w-100">
                             <div class="d-flex justify-content-between">
                                 <div>S12</div>
                                 <div class="text-bolder font-p14">91.67%</div>
                             </div>
                             <div class="progress" style="height: 6px;">
                                 <div class="progress-bar" style="width: 91.67%"></div>
                             </div>
                         </td>
                     </tr>
                     <tr class="num3">
                         <td><i class="iconfont icon-biaoqian"></i></td>
                         <td class="text-bolder number text-center">3</td>
                         <td class="w-100">
                             <div class="d-flex justify-content-between">
                                 <div>S12</div>
                                 <div class="text-bolder font-p14">91.67%</div>
                             </div>
                             <div class="progress" style="height: 6px;">
                                 <div class="progress-bar" style="width: 91.67%"></div>
                             </div>
                         </td>
                     </tr>
                     <tr class="num4">
                         <td><i class="iconfont icon-biaoqian"></i></td>
                         <td class="text-bolder number text-center">4</td>
                         <td class="w-100">
                             <div class="d-flex justify-content-between">
                                 <div>S12</div>
                                 <div class="text-bolder font-p14">91.67%</div>
                             </div>
                             <div class="progress" style="height: 6px;">
                                 <div class="progress-bar" style="width: 91.67%"></div>
                             </div>
                         </td>
                     </tr>-->
                </table>
            </div>
        </div>
        <div class="flex-1 border-section ml-3">
            <div class="d-flex justify-content-between align-items-start mb-3">
                <div class="section-title">设备生产详情
                    <span class="title-icon"></span>
                </div>
                <div class="mt-3">
                    <button class="btn btn-warning" type="button"
                            onclick="exportProductionDetails()"><i class="iconfont icon-daochu"></i> 导出
                    </button>
                </div>
            </div>
            <table class="table table-striped table-bordered table-center " id="export_table">

            </table>
            <div id="page" class="page_div mb-3"></div>
        </div>
    </div>
</div>
<div class="modal fade" id="JDLModal" tabindex="-1">
    <div class="modal-dialog modal-xl">
        <div class="modal-content">
            <div class="modal-header">
                <div class="section-title">稼动率年数据
                    <span class="title-icon"></span>
                </div>
                <button type="button" class="close" data-dismiss="modal">
                    <span>&times;</span>
                </button>
            </div>
            <div class="modal-body p-4">
                <form class="form-row align-items-center mb-3">
                    <div class="col-auto">
                        <strong class="font-p14">条件查询：</strong>
                    </div>
                    <div class="col-auto">
                        <div class="input-group">
                            <input class="form-control time-picker border-0" type="text" id="searchTimeYear"
                                   autocomplete="off" placeholder="选择年份">
                            <div class="input-group-append">
                                <button class="btn btn-primary" type="button" onclick="setChart_line2()"><i
                                        class="iconfont icon-dituyechaxun"></i></button>
                            </div>
                        </div>
                    </div>
                </form>
                <div class="bg-chart p-3">
                    <div class="chart modal-chart" id="chart_line2" style="height: 424px;"></div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="../plugins/jquery-3.4.1.min.js"></script>
<script src="../plugins/bootstrap/bootstrap.bundle.min.js"></script>
<script src="../plugins/alert.js"></script>
<script src="../plugins/paging.js"></script>
<script src="../plugins/laydate/laydate.js"></script>
<script src="../plugins/jquery.cookie.js"></script>
<script src="../plugins/echarts.min.js"></script>
<script src="../plugins/ExcelUtil.js"></script>
<script src="../customize/js/CommonUtils.js"></script>
<script src="../customize/js/common.js"></script>
<script src="../customize/js/customModalV2.js"></script>
<script src="../customize/js/productionReport.js"></script>
</body>
</html>